package com.yunxi.service.localService.impl.sat;

import com.yunxi.core.service.ServiceImplPlus;
import com.yunxi.dao.sat.SatTestDriveRouteMapper;
import com.yunxi.model.sat.SatTestDriveRoute;
import com.yunxi.sat.pojo.SatTestDriveRouteListVO;
import com.yunxi.sat.pojo.SatTestDriveRouteVO;
import com.yunxi.service.localService.sat.SatTestDriveRouteService;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * <p>
 * 试乘试驾路线 服务实现类
 * </p>
 *
 * @author caoYong
 * @since 2019-07-09
 */
@Service
public class SatTestDriveRouteServiceImpl extends ServiceImplPlus<SatTestDriveRouteMapper, SatTestDriveRoute> implements SatTestDriveRouteService {

    /**
     * 根据渠道商代码查询试驾路线
     * @param partnerCode
     * @return
     */
    @Override
    public List<SatTestDriveRouteListVO> listByCode(String partnerCode) {
        SatTestDriveRouteVO vo = new SatTestDriveRouteVO();
        vo.setPartnerCode(partnerCode);
        return baseMapper.listByCode(vo);
    }
}
